﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace footwear
{
    public class ShoeInfoBus
    {
        private readonly ShoeInfoDao _shoeInfoDao = new ShoeInfoDao();

        public List<ShoeInfo> GetListShoesShowIndexByCategory(string categoryType)
        {
            return _shoeInfoDao.GetListShoesShowIndexByCategory(categoryType);
        }

        public List<ShoeInfo> GetAllShoeItem()
        {
            return _shoeInfoDao.GetAllShoeItem();
        }

        public List<ShoeInfo> GetListShoesByCategory(string categoryType)
        {
            return _shoeInfoDao.GetListShoesByCategory(categoryType);
        }

        public ShoeInfo GetSpecificShoe(string code)
        {
            return _shoeInfoDao.GetSpecificShoe(code);
        }

        public bool DeleteProductByCode(string code)
        {
            return _shoeInfoDao.DeleteProductByCode(code);
        }

        public bool AddProduct(string code, string name, string price, string imageSource, string showIndex, string typeId, string size, string color, string description, string leftImage, string rightImage, string frontImage, string backImage, string topImage)
        {
            return _shoeInfoDao.AddProduct(code, name, price, imageSource, showIndex, typeId, size, color, description,
                                           leftImage, rightImage, frontImage, backImage, topImage);
        }

        public bool UpdateProductByCode(string code, string name, string price, string imageSource, string showIndex, string typeId, string size, string color, string description, string leftImage, string rightImage, string frontImage, string backImage, string topImage)
        {
            return _shoeInfoDao.UpdateProductByCode(code, name, price, imageSource, showIndex, typeId, size, color, description,
                                           leftImage, rightImage, frontImage, backImage, topImage);
        }
    }
}